#ifndef BUFFER_H
#define BUFFER_H 1

#include <string>
using std::string;

class Buffer{
private:
	unsigned int maxlength;
	string str,str2;
	string printed[20];
	int current;
public:
	Buffer() : maxlength(65),str(""),str2(""),current(0){ for(int i=0;i<20;++i){ printed[i]=""; } }
	void Rec(string in);
	void Now(string in);
	void Print(bool auto_more=false);
	string Printed(int num){ return printed[(current+num-1)%20]; }
};

#endif

